from django.urls import re_path
from . import views

urlpatterns = [
    re_path(r"^questions/$", views.QuestionCreateAPIView.as_view()),
    re_path(r"^questions/(?P<pk>-?\d+)/$", views.QuestionsAPIView.as_view()),
    re_path(r"^labels/$", views.LabelsAPIView.as_view()),
    re_path(r"^questions/(?P<pk>-?\d+)/label/wait/$", views.WaitAPIView.as_view()),
    re_path(r"^questions/(?P<pk>-?\d+)/label/hot/$", views.HotAPIView.as_view()),

    re_path(r"^questions/(?P<pk>-?\d+)/label/new/$", views.NewAPIView.as_view()),
    re_path(r"^labels/users/$", views.LabelUsersAPIView.as_view()),
    re_path(r"^spit/$", views.SpitAPIView.as_view()),

]
